package com.muqi.app.qlearn.student.ui;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.muqi.app.qlearn.fragments.TabFileTree;
import com.muqi.app.qlearn.student.BaseFragmentActivity;
import com.muqi.app.qlearn.student.R;

public class GrowRecordActivity extends BaseFragmentActivity implements
		OnClickListener {
	private FragmentManager manager;
	private FragmentTransaction transaction;
	public String type;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_grow_record);
		
		

	}

	@Override
	protected void onInit() {
		type=getIntent().getStringExtra("type");
		manager = getSupportFragmentManager();
		transaction=manager.beginTransaction();
		transaction.replace(R.id.root, new TabFileTree());
		transaction.commit();
		
	}

	@Override
	protected void onData() {

	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.comment_statistics:
			Intent intent = new Intent(GrowRecordActivity.this,
					ClassRoomCommentStatisticsActivity.class);
			startActivity(intent);
			break;

		default:
			break;
		}

	}

	public void onBack(View v) {
		this.finish();
	}

}
